//
//  ViewController.m
//  New UILabel
//
//  Created by liuchengming on 16/7/27.
//  Copyright © 2016年 liuchengming. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void) CreateUILabel
{
    UILabel * label = [UILabel new];
    
    label.text = @"you happy is good!!! haha~~";
    
    label.backgroundColor = [UIColor cyanColor];
    
    label.textColor = [UIColor yellowColor];
    
    label.frame = CGRectMake(150, 100, 160, 120);
    
    label.font = [UIFont systemFontOfSize:20];
    
    label.shadowColor = [UIColor grayColor];
    label.shadowOffset = CGSizeMake(3, -6);
    
    label.numberOfLines = 0;
    
    self.view.backgroundColor = [UIColor darkGrayColor];
    
    
    
    [self.view addSubview:label];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    [self CreateUILabel];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
